<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <p></p>
    <script>
        // console.log(location.search);
        //1.去掉问号
        var params = location.search.substr(1);
        console.log(params);
        var arr = params.split('=');
        var p = document.querySelector('p');
        p.innerHTML = '欢迎'+arr[1];
    </script>
</body>
</html>